{include file="public/header" /}
<style>
    .crontab-log {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding: 15px;
        background-color: rgb(51, 51, 51);
        color: #f1f1f1;
        border-bottom: 1px dashed #6c6b6b;
        font-size: 13px;
    }
    .crontab-log:last-child {
        border-bottom: none;
    }
    .red {
        color: #f15f5f;

    }
    .green {
        color: #06b206;
    }

    .layui-badge {
        background-color: #f15f5f;
    }

    .layui-bg-green {
        background-color: #06b206 !important;
    }

    .null {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding-top: 20%;
    }
</style>
<body>
<div class="layui-fluid layui-anim layui-anim-down" style="padding: 0 !important;">
    <div class="setchmod bt-form">
        {if !empty($list)}
        {foreach name="list" item="vo"}
        <div class="crontab-log" id="crontab-log">
            {if $vo.status == '执行成功'}
            <span class="layui-badge layui-bg-green">Success</span>
            {else}
            <span class="layui-badge">Fail</span>
            {/if}
            <span class="{if $vo.status != '执行成功'}red{else}green{/if}">
                 [ {:date('Y/m/d H:i:s',$vo.times)} ][ 耗时：{$vo.required}s ] <br/>
                 {$vo.status}
            </span>
        </div>
        {/foreach}
        {else}
        <div class="null">
            <i class="layui-icon layui-icon-tips-fill"></i>
            <div>暂无执行记录</div>
        </div>
        {/if}
    </div>
</div>
</body>
{include file="public/footer" /}
</html>